package com.kurumi.mapper.homepage;

import java.util.HashMap;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.kurumi.pojo.homepage.MedicalRecordBasic;

public interface MedicalRecordBasicMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(MedicalRecordBasic record);

    int insertSelective(MedicalRecordBasic record);

    MedicalRecordBasic selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(MedicalRecordBasic record);

    int updateByPrimaryKey(MedicalRecordBasic record);

    /**
     * 根据visitGuid删除病案基本信息
     * @param visitGuid
     */
	void deleteByVisitGuid(String visitGuid);
	
	
	/**
	 * 同步medical_record_basic缺少的数据信息
	 * @param startTime 出院查询开始时间
	 * @param endTime  出院查询结束时间
	 * @return
	 */
	
	List<String> syncMediclRecordBasicVisitGuid(@Param("startTime") String startTime,@Param("endTime") String endTime);

	/**
	 * 根据唯一标识查询guid集合
	 * @param asList
	 * @return
	 */
	List<String> getVisitGuidByOnlyIdList(@Param("onlyIds")List<String> onlyIds);
	
	//List<String> syncMediclRecordBasicVisitGuid(HashMap<String, String> map);
	
}